package com.example.svntraining;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    
    public void onClick(View view) {
    	Class cls = null;
    	switch (view.getId()) {
	    	case R.id.imamura:
	    		cls = com.example.svntraining.ImamuraActivity.class;
	    		break;
	    	case R.id.tabata:
	    		cls = com.example.svntraining.TabataActivity.class;
	    		break;
	    	case R.id.nishimura:
	    		cls = com.example.svntraining.NishimuraActivity.class;
	    		break;
	    	case R.id.morita:
	    		cls = com.example.svntraining.MoritaActivity.class;
	    		break;
    	}
    	if (cls != null) {
    		Intent i = new Intent(this, cls);
    		startActivity(i);
    	}
    }
}
